<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<% 
//设置无缓存 
response.setHeader("progma","no-cache"); 
response.setHeader("Cache-Control","no-cache"); 
response.setDateHeader("Expires",0); 
%> 
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<LINK href="/schedule/style/login.css" type=text/css rel=stylesheet>
		<script type="text/javascript">
		function change(img){
	      img.src = img.src + "?" + new Date().getTime();
	      };
		</script>		
		<title>用户登陆首页</title>
	</head>  
		<BODY class=PageBody leftMargin=0 topMargin=0 MARGINHEIGHT="0"
			MARGINWIDTH="0">
			<CENTER>
				<form id="myform" method="post">
					<TABLE height="100%" cellSpacing=0 cellPadding=0 border=0>
						<TBODY>
							<TR>
								<TD>
								</TD>
							</TR>
							<TR>
								<TD>
									<TABLE cellSpacing=0 cellPadding=0 border=0>
										<TBODY>
											<TR class=UpTr height=20>
												<TD></TD>
												<TD></TD>
												<TD class=VersionTitle align=right>
													版本:1.0
												</TD>
											</TR>
											<TR class=UpTr height=65>
												<TD width=20></TD>
												<TD colSpan=2>
													<IMG src="/schedule/images/login/log.jpg" height=80
														width=500 border=0>
												</TD>
											</TR>
											<TR height=3>
												<TD background=/schedule/images/login/logo_under_line.gif
													colSpan=3></TD>
											</TR>
											<TR class=DownTr>
												<TD></TD>
												<TD>
													<TABLE height=204 cellSpacing=0 cellPadding=0 border=0>
														<TBODY>
															<TR height=50>
																<TD colSpan=3></TD>
															</TR>
															<TR height=18>
																<TD width=290
																	background=/schedule/images/login/userLogin.gif
																	colSpan=3></TD>
															</TR>
															<TR>
																<TD class=LoginLine width=2></TD>
																<TD width=286>
																	<TABLE height="100%" cellSpacing=0 cellPadding=0
																		width="100%" border=0>
																		<TBODY>
																			
																			<TR>
																			  <TD class=ItemTitleFont align=right
																					height=25>用户类型：</TD>
																				<TD width=100>
																				<select name="type" id="type" tabindex="1">
                                                                                     <option value=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;班&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;级</option>
                                                                                     <option value=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;教&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;师</option>
                                                                                     <option value=3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;管&nbsp;理&nbsp;员</option>
																				  </select>
																		 	  </TD>
																			  <TD align="center" rowSpan=3>
																			    <input name="submit" type="image" tabindex="5" 
																						src="/schedule/images/login/userLogin_button.gif"
																						border=0>
																			    </TD>
																		  </TR>
																			<TR>  
                                                                             <TD class=ItemTitleFont align=right width=80
																					height=25>
																			 		 用&nbsp;&nbsp;户&nbsp;&nbsp;名： </TD>
																				<TD width=110>
																					<INPUT name=user.user_name class=inputFrm
																						id=user.user_name tabindex="2">
																			 	 </TD>
																			</TR>
																			<TR>
																				<TD class=ItemTitleFont align=right height=25>
																					密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：
																				</TD>
																				<TD width=110>
																					<INPUT
																						name=user.user_password type=password class=inputFrm id=user.user_password tabindex="3">
																				</TD>
																			</TR>
																			<TR>
																				<TD class=ItemTitleFont align=right height=25>
																					验&nbsp;&nbsp;证&nbsp;&nbsp;码：
																				</TD>
																				<TD width=110>
																					<INPUT name=checkcode type=text class=inputFrm tabindex="4">
																			  </TD>
																				<TD class=ItemTitleFont align="center" height=25 width=110>
																					<img src="/schedule/userIdentifyingCode" border=0
																						onClick="change(this)" tabindex="5"/>
																				</TD>
																			</TR>
																			<TR>
																				<TD>
																				</TD>
																				<TD>
																					<c:if test="${!empty message}"><font color="red" size=-1>${message}</font></c:if> 
																					<c:if test="${!empty message1}"><font color="red" size=-1>${message1}</font></c:if> 
																				</TD>
																				<TD class=ItemTitleFont align="center" height=25>
																					点击可刷新
																				</TD>
																			</TR>
																			<TR>
																			<TD></TD>
																				
																			</TR>
																		</TBODY>
																	</TABLE>
															  </TD>
																<TD class=LoginLine width=2></TD>
															</TR>
															<TR height=11>
																<TD width=290
																	background=/schedule/images/login/userLogin_down.gif
																	colSpan=3></TD>
															</TR>
														</TBODY>
													</TABLE>
												</TD>
												<TD width=228>
													<IMG src="/schedule/images/login/logo_bg.gif" border=0>
												</TD>
											</TR>
											<TR class=DownTr height=24>
												<TD></TD>
												<TD class=VersionTitle vAlign=bottom align=right
													background=/schedule/images/login/logo_copyright_bg.gif
													colSpan=2>
													<A class=close href="http://www.huas.cn/" target=_blank>信计08
														版权所有</A>
												</TD>
											</TR>
										</TBODY>
									</TABLE>
								</TD>
							</TR>
							<TR height="3%">
								<TD></TD>
							</TR>
						</TBODY>
					</TABLE>
				</form>
			</CENTER>
				<script language='javascript'> 
					function document_oncontextmenu()           
							{           
					      return   false;           
							} ;
					var type = document.getElementById("type"); 
					var form = document.getElementById('myform');
						 form.onsubmit = function() {
						  if(type.value==1){	
							document.getElementById("myform").action="<%=path%>/schedule/loginClasses";
						  }
						  if(type.value==2){	
							document.getElementById("myform").action="<%=path%>/schedule/loginTeachers";
						  }
						  if(type.value==3){	
							document.getElementById("myform").action="<%=path%>/schedule/loginAdmin";
						  }
						  
						  form.submit();
						 };
						
				</script>
			
		</BODY>
</html>